@extends('layout.adminindex')
@section('con')
<div class="mws-panel grid_8">
<div class="mws-panel-header">
	<span><i class="icon-table"></i> 浏览用户信息</span>
</div>
<div class="mws-panel-body no-padding">
    <div id="DataTables_Table_1_wrapper" class="dataTables_wrapper" role="grid">
     <form action="/admin/user/index" method='get'>
    		<div id="DataTables_Table_1_length" class="dataTables_length">
       
    			<label>分页
          <select  name="num" aria-controls="DataTables_Table_1">
      				<option value="10" 
              @if(!empty($request['num']) && $request['num']==10)
                selected
              @endif
              >10</option>
      				<option value="25"
                   @if(!empty($request['num']) && $request['num']==25)
                      selected
                    @endif
              >25</option>
              <option value="50"
                 @if(!empty($request['num']) && $request['num']==50)
                    selected
                  @endif
              >50</option>
      				<option value="100"
               @if(!empty($request['num']) && $request['num']==100)
                selected
               @endif
              >100</option>
            </select> </label>
    		</div>
    		<div class="dataTables_filter" id="DataTables_Table_1_filter">
    			<label>搜索: <input  name='keywords' value='@if(!empty($request['keywords']))
{{$request['keywords']}}
@endif' aria-controls="DataTables_Table_1" type="text"></label>
           <button class='btn btn-primary'>查询</button>
           </form>
    		</div>
       
    				<table class="mws-datatable-fn mws-table dataTable" id="DataTables_Table_1" aria-describedby="DataTables_Table_1_info">
        <thead>
            <tr role="row">
	            <th class="sorting_asc" role="columnheader" tabindex="0" aria-controls="DataTables_Table_1" rowspan="1" colspan="1" style="width: 145px;" aria-sort="ascending" aria-label="Rendering engine: activate to sort column descending">用户ID</th>
	            <th class="sorting" role="columnheader" tabindex="0" aria-controls="DataTables_Table_1" rowspan="1" colspan="1" style="width: 189px;" aria-label="Browser: activate to sort column ascending">帐号</th>
	            <th class="sorting" role="columnheader" tabindex="0" aria-controls="DataTables_Table_1" rowspan="1" colspan="1" style="width: 177px;" aria-label="Platform(s): activate to sort column ascending">电话</th>
	            <th class="sorting" role="columnheader" tabindex="0" aria-controls="DataTables_Table_1" rowspan="1" colspan="1" style="width: 121px;" aria-label="Engine version: activate to sort column ascending">邮箱</th>
	            <th class="sorting" role="columnheader" tabindex="0" aria-controls="DataTables_Table_1" rowspan="1" colspan="1" style="width: 87px;" aria-label="CSS grade: activate to sort column ascending">状态</th>
	            <th class="sorting" role="columnheader" tabindex="0" aria-controls="DataTables_Table_1" rowspan="1" colspan="1" style="width: 87px;" aria-label="CSS grade: activate to sort column ascending">操作</th>
	            </tr>
        </thead>
        
    <tbody role="alert" aria-live="polite" aria-relevant="all">

    @foreach($list as $k=>$v)

	<tr class="
	@if($k%2==0)
		odd
	@else
		even
	@endif
	">
        <td class="  sorting_1">{{$v['id']}}</td>
        <td class=" ">{{$v['username']}}</td>
        <td class=" ">{{$v['phone']}}</td>
        <td class=" ">{{$v['email']}}</td>
        <td class=" ">{{showStatus($v['status'])}}</td>
        <td class=" ">
			<a href="/admin/user/edit/{{$v['id']}}" class='icon-tools' style='font-size:20px;color:#CCC'></a>
			&nbsp;&nbsp;&nbsp;&nbsp;
			<a href="/admin/user/feeze/{{$v['id']}}" class='icon-unlock' style='font-size:17px;color:#CCC'></a>
        </td>
    </tr>
    @endforeach
       </tbody></table>
       <div class="dataTables_info" id="DataTables_Table_1_info">Showing 1 to 10 of 57 entries</div>
           <div class='dataTables_paginate paging_full_numbers' id='pages'>
             {!!$list->appends($request)->render()!!}
           </div>
       	</div>
</div>
</div>
@endsection